package org.pidan.basic.designModel.factory.abstractFactory;

/**
 * {@code @description}: 抽象工厂模式
 * 创建第一个子工厂，及实现类
 * {@code @author}: huangyuxin
 * {@code @date}: 2023-11-16
 */

public interface Abstract1 {

    void run();
}

class BenTian implements Abstract1 {

    @Override
    public void run() {
        System.out.println("本田");
    }
}

class DaZhong implements Abstract1 {

    @Override
    public void run() {
        System.out.println("大众");
    }
}
